package com.guoxin.chapter2.synchronizedonethreadin;

public class ThreadA extends Thread {
	private ObjectService service;

	public ThreadA(ObjectService service) {
		this.service = service;
	}
	
	@Override
	public void run() {
		service.serviceMethod();
	}

}
